package com.gct.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gct.domain.Art;
import com.gct.domain.Audio;
import com.gct.persistence.AudioMapper;
import com.gct.service.base.BaseService;

@Service
public class AudioService extends BaseService {
    @Autowired
    private AudioMapper audioMapper;

    public List<Audio> getAudios() {
        return audioMapper.getAudios();
    }

    public Audio getAudioById(long id) {
        return audioMapper.getAudioDetails(id);
    }

    public Art getAudioURI(long id) {
        return audioMapper.getArtURI(id);
    }
}
